package com.xcity.game.currency;

public enum CurrencyType {
	UNKNOWN(/*-1, */""),
	GOLD(/*1, */"现金"),
	STONE(/*2, */"钻石"),
	STRENGTH(/*3, */"体力"),
	HONOR(/*4, */"荣誉"), // 竞技场货币
	KING_COIN(/*5, */"王者币"), // 竞技场货币
	PEAK_COIN(/*6, */"巅峰币"), // 爬塔副本产出
	VIGOUR(/*7, */"精力"), // 副本消耗货币
	BOND(/*8, */"债券"), // 每月豪华签到产出
	STAGE_STARS(/*9, */"天命星数"),
	CIRCLE_SCORE(/*10, */"欢乐转盘积分"),
	SKILL_POINTS(/*11, */"技能点"),
	;
	
//	public final byte code;
	public final String name;
	
	CurrencyType(/*int code, */String name) {
//		this.code = (byte) code;
		this.name = name;
	}
	
	static CurrencyType[] vals = values();
	public static CurrencyType forCode(int code) {
		return code >= 0 && code < vals.length ? vals[code] : UNKNOWN;
	}
	
	public static CurrencyType[] vals() {
		return vals;
	}
	
	public static int size() {
		return vals.length;
	}
	
}
